package com.example.mybatisplusdemo.service.impl;

import com.example.mybatisplusdemo.model.domain.Booking;
import com.example.mybatisplusdemo.mapper.BookingMapper;
import com.example.mybatisplusdemo.service.IBookingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yrd
 * @since 2025-07-07
 */
@Service
public class BookingServiceImpl extends ServiceImpl<BookingMapper, Booking> implements IBookingService {

    @Autowired
    private BookingMapper bookingMapper;

    @Override
    public List<Map<String, Object>> getUserBookingsWithFlightInfo(Long userId) {
        return bookingMapper.getUserBookingsWithFlightInfo(userId);
    }

}
